﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    [Table("Usuario")]
    public class Usuario
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int id { get; set; }

       
        [Required(ErrorMessage = "Nombre de usuario es requerido")]
        public string username { get; set; }

        [Required(ErrorMessage = "Nombre real es requerido")]
        public string realName { get; set; }

      
        [Required(ErrorMessage = "E-mail es requerido")]
        public string mail { get; set; }

      
        [Required(ErrorMessage = "Codigo de empresa es requerido")]
        public int idCodigo { get; set; }

    }
}
